<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.wpf.bean.Querybean" %>
<% String userName = (String)session.getAttribute("username"); %>
<% if(userName==null){ %>
	<jsp:forward page="/wpf_login.jsp"/>
<%}else{ %>
<!DOCTYPE html>
<html>
<head>
<title>添加学生</title>
<style>
<jsp:include page="./css/allStyle.css" flush="true" />
</style>
</head>
<jsp:useBean id="lastresult" class="com.wpf.bean.Querybean" scope="session"/>
<body>
<h1>学生管理系统</h1>
<h4><font color="grey">新增学生信息页面</font></h4>
<hr>
<table>
	<tr>
		<th>
		<% if(lastresult.getFindKey()==null){ %>
			<form action="wpf_index.jsp" method="get">
		<%}else{ %>
			<form action="wpf_RefreshData" method="post">
		<%} %>
				<input class="back bot" type="submit" value="❌返回" />
			</form>
		</th>
		<th>添加信息窗口</th>
	</tr>
	<form action="wpf_AddData" method="post">	
	<tr>
		<td class="va">*学号:</td>
		<td><input type="text" name="id" /></td>
	</tr>
	<tr>
		<td class="va">姓名:</td>
		<td><input type="text" name="username" /></td>
	</tr>
	<tr>
		<td class="va">密码:</td>
		<td><input type="password" name="password" /></td>
	</tr>
	<tr>
		<td class="va">确认密码:</td>
		<td><input type="password" name="compass" /></td>
	</tr>
	<tr>
		<td class="va">邮箱:</td>
		<td><input type="text" name="email" /></td>
	</tr>
	<tr>
		<td class="va">出生日期:</td>
		<td><input type="date" name="birthday" class="wi"/></td>
	</tr>
	<tr class="ri">
		<td colspan="2">
			${Message}
			<input class="reset bot" type="reset" value="✖重置" />
			<input class="confirm bot" type="submit" value="✔添加" />
		</td>
	</tr>
	</form>
</table>
</body>
</html>
<%} %>
